package lab02.test29;

/**
 * ArrayIndexOutOfBoundsException:数组下标越界
 * Created by AIR on 2017/11/2.
 */
public class Test {
    public static void main(String[] args) {
        int[] numbers = new int[5];
        numbers[0] = 32;//用ctl+d来进行复制
        numbers[1] = 25;
        numbers[2] = 28;
        numbers[3] = 12;
        numbers[4] = 17;
        try {
            System.out.println(numbers[5]);
        }catch (ArrayIndexOutOfBoundsException e){
            System.out.println("数组越界！！！");
        }finally {
            System.out.println("最后都会执行的语句！！!");
        }


    }
}
